<include file="public@header"/>
</head>
<body>
<div class="wrap">
    <ul class="nav nav-tabs">
        <li><a href="{:url('meeting/room/index')}">展位管理</a></li>
        <li class="active"><a href="{:url('meeting/room/refund',['id'=>$info['id']])}">申请退款</a></li>
    </ul>
    <form method="post" action="{:url('saveRefund')}" class="js-ajax-form">

        <if condition="$info">
            <div class="form-group">
                <label for="">公司</label>
                <input type="text" class="col-xs-9 form-control" name="company_name" value="{$info.company_name}">
            </div>
            <div class="form-group">
                <label for="">开户行</label>
                <input type="text" class="col-xs-9 form-control" name="bank_name" value="{$info.bank_name}">
            </div>
            <div class="form-group">
                <label for="">账号</label>
                <input type="number" class="col-xs-9 form-control" name="bank_no" value="{$info.bank_no}">
            </div>

<!--            <div class="form-group" >-->
<!--                <label for="">地址</label>-->
<!--                <input type="text" class="col-xs-9 form-control" name="address" value="{$info.address}">-->
<!--            </div>-->
            <div class="form-group">
                <label for="">明细</label>
                <table class="table table-bordered">
                    <tr>
                        <th>项目</th>
                        <th>价格</th>
                        <th>数量</th>
                        <th>总价</th>
                    </tr>
                    <foreach name="data" item="vo">
                        <tr>
                            <td>{$vo.name}</td>
                            <td>{$vo.val}</td>
                            <td>{$vo.number}</td>
                            <td>{$vo.total}</td>
                        </tr>
                    </foreach>
                    <tr>
                        <th colspan="3">合计</th>
                        <th>{$total}</th>
                    </tr>


                </table>
            </div>
            <if condition="$info['status'] eq 2">
                <div class="form-group">
                    <label for="">拒绝理由：</label>
                    {$info.reason}
                </div>
                <div class="form-group">
                    <input type="hidden" name="price" value="{$info.price}">
                    <input type="hidden" name="builder_id" value="{$info.builder_id}">
                    <input type="hidden" name="meeting_id" value="{$info.meeting_id}">
                    <input type="submit" class="btn btn-primary js-ajax-submit" value="申请">
                </div>
            </if>
            <else/>
            <div class="form-group">
                <label for="">公司</label>
                <input type="text" class="col-xs-9 form-control" name="company_name" value="{$builder_info.company}">
            </div>
            <div class="form-group">
                <label for="">开户行</label>
                <input type="text" class="col-xs-9 form-control" name="bank_name" value="{$builder_info.bank_name}">
            </div>
            <div class="form-group">
                <label for="">账号</label>
                <input type="number" class="col-xs-9 form-control" name="bank_no" value="{$builder_info.bank_no}">
            </div>

<!--            <div class="form-group" >-->
<!--                <label for="">地址</label>-->
<!--                <input type="text" class="col-xs-9 form-control" name="address" value="{$builder_info.address}">-->
<!--            </div>-->
            <div class="form-group">
                <label for="">明细</label>
                <table class="table table-bordered">
                    <tr>
                        <th>项目</th>
                        <th>价格</th>
                        <th>数量</th>
                        <th>总价</th>
                    </tr>
                    <foreach name="data" item="vo">
                        <tr>
                            <td>{$vo.name}</td>
                            <td>{$vo.val}</td>
                            <td>{$vo.number}</td>
                            <td>{$vo.total}</td>
                        </tr>
                    </foreach>
                    <tr>
                        <th colspan="3">合计</th>
                        <th>{$total}</th>
                    </tr>


                </table>
            </div>
            <if condition="empty($info)">
                <div class="form-group">
                    <input type="hidden" name="price" value="{$total}">
                    <input type="hidden" name="builder_id" value="{$builder_info.builder_id}">
                    <input type="hidden" name="meeting_id" value="{$builder_info.meeting_id}">
                    <input type="submit" class="btn btn-primary js-ajax-submit" value="申请">
                </div>
            </if>


        </if>

    </form>

</div>
<script src="__STATIC__/js/admin.js"></script>

</body>
</html>